<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>机票</title>
</head>
<body>
	<script type="text/javascript">
		
		
		var p = prompt("请输入当前月季");
		
		if(p>=5 && p<=10){
			var piao = prompt("头等舱还是经济舱");
			if(piao == "头等舱"){
				alert("头等舱2000");
			}else{
				alert("经济舱800");
			}
		}else{
			var piao = prompt("头等舱还是经济舱");
			if(piao == "头等舱"){
				alert("头等舱800");
			}else{
				alert("经济舱200");
			}
		}
		
	</script>
</body>
</html>